import {
	ref
} from 'vue'


export const useToggle = (initState) => {
	const state = ref(initState)
	const toggle = function() {
		state.value = !state.value
	}
	return [state, toggle]
}